<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class ShopAdminUsers extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
      Schema::create('shop_admin_users', function (Blueprint $table) {
          $table->increments('id');
          $table->string('name', 20);
          $table->string('password', 100);
          $table->string('phone', 13);
          $table->string('email', 30);
          $table->tinyInteger('status')->default(0)->comment('0:正常;1:禁用');
          $table->timestamps();
      });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
      Schema::dropIfExists('shop_admin_users');
    }
}
